package com.xunwulian.base.constant;

import com.xunwulian.base.util.EnumType;

/**
 * 菜单或者按钮操作类型
 */
public enum OperationType implements EnumType<OperationType, String, String> {

    ADD("add", "增加"),
    DEL("del", "删除"),
    EDIT("edit", "编辑"),
    CHAR("cha", "查询");

    public String role;
    public String desc;

    OperationType(String role, String desc) {
        this.role = role;
        this.desc = desc;
    }

    @Override
    public String getType() {
        return this.role;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
